cmake_minimum_required(VERSION 3.10)
project(lvgl_sdl)
include_directories(.)
include_directories(./lvgl)
include_directories(./lv_drivers)
include_directories(./ui)#添加头文件路径
add_subdirectory(lvgl)
add_subdirectory(lv_drivers)
add_subdirectory(ui_project)#添加子目录
add_executable(${PROJECT_NAME} main.c)
target_link_libraries(${PROJECT_NAME} PRIVATE lvgl lvgl::examples lvgl::demos lvgl::drivers SDL2 ui)
target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/lib)#指定库路径